﻿using BussinessObject.ObjectTwo;
using Class_Entity.ObjectTwo;
using ProjectHK3.App_Code;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectHK3.Object_One
{
    public partial class CreateService : System.Web.UI.Page
    {
        B_Insert bi = new B_Insert();
        C_Services ser = new C_Services();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            ser.SERVICE_CODE = TextBox1.Text;
            ser.SERVICE_NAME = TextBox2.Text;
            ser.DESCRIPTION = TextBox3.Text;
            if (bi.InsertService(ser) == false)
            {
                Alert.Show("Insert Fail !!!");
            }
            else
            {
                Alert.Show("Insert Succesfull!!!");
            }
        }
    }
}